﻿@model WebUI.Models.SmsTemplate
@{
    ViewBag.Title = "ImportSmsTemplate";
}
@using (Ajax.BeginForm(new AjaxOptions()
{
    LoadingElementId = "OnLoadingSpan",
    UpdateTargetId = "smsTemplate",
    InsertionMode = System.Web.Mvc.Ajax.InsertionMode.Replace,
    HttpMethod = "Post",
    OnFailure = "OnSiteError"
}))
{
<div id="show" class="SmsTemplateDiv">
     <fieldset>    
        <legend>模板</legend>
        <div class="editor-label">
            @Html.DropDownListFor(model => model.SmsText, new SelectList(ViewBag.Templates, "ID", "SmsText"), new { id = "smsDDL", style="width:100%"})
        </div>
        <div class="editor-label" style="float:right">
            <input id="btnclose" class="ui-button ui-widget ui-state-default ui-corner-all" type="button" value="取消" onclick="hidediv();return false;" />
            <input id="btnImport" class="ui-button ui-widget ui-state-default ui-corner-all" type="button" value="导入" onclick="smschange('@Request["insertId"]')"  />
        </div>
        </fieldset>
</div>   
}

